#ifndef __BOARD_C_
#define __BOARD_C_

// 说明：路径\ 或 / 都可以;
// 例如："Board_APM32_SQ/src/BoardInit.c" 也是没问题的。
#include "Board.h"
#include "Board_APM32_SQ\src\BoardInit.c"
// 极海芯片和雅特力芯片 初始化函数
#include "Board_APM32_SQ\src\Led.c"  
#include "Board_APM32_SQ\src\ADCReader.c" 
#include "Board_APM32_SQ\src\CP_Monitor.c" 
#include "Board_APM32_SQ\src\PWM_Control.c" 
#include "Board_APM32_SQ\src\Relay_Control.c"    
#include "Board_APM32_SQ\src\TEMP_Detect.c"  
#include "Board_APM32_SQ\src\Leakage_Detect.c"  
#include "Board_APM32_SQ\src\TimerDef.c"  
#include "Board_APM32_SQ\src\uart.c" 

#if Nor_Flash > 0
#include "Board_APM32_SQ\src\NorFlash.c"  
#include "Board_APM32_SQ\src\NorFlashSPI.c"   
#endif

#if RTC_ON > 0
#include "Board_APM32_SQ\src\RTC_Timer.c" 
#endif

#if PE_ON > 0
#include "Board_APM32_SQ\src\PE_Detect.c"   
#endif

#if Key1  > 0 
#include "Board_APM32_SQ\src\Key.c"
#endif

#if CarD1_Protect > 0   
#include "Board_APM32_SQ\src\CarD1_Detect.c"
#endif

#if UI_Meter_Method == Meter_SelfADC
#include "Board_APM32_SQ\src\Chg_Voltage_Current.c"
#endif

#if UI_Meter_Method == Meter_GuageIC_RN8209  
#include "Board_APM32_SQ\src\UI_Gauge_SPI.c"
#include "Board_APM32_SQ\src\rn8209.c" 
#elif UI_Meter_Method == Meter_GuageIC_RN8302B 
#include "Board_APM32_SQ\src\UI_Gauge_SPI.c" 
#include "Board_APM32_SQ\src\rn8302B.c" 
#endif

#if meter485_ON > 0
#include "Board_APM32_SQ\src\meter485.c"
#endif

#if card_type_sel == Card_MF1
#include "Board_APM32_SQ\src\Card_SPI.c"   
#include "Board_APM32_SQ\src\MF1Card.c" 
#include "Board_APM32_SQ\src\MF1CardWork.c" 
#endif

#if beep_type == beep_APM || beep_type == beep_BPM
#include "Board_APM32_SQ\src\buzzer.c"    
#endif

#if CC_Detect_type > 0
#include "Board_APM32_SQ\src\CC_Detect.c"   
#endif

#if PinPick_RatedI > 0
#include "Board_APM32_SQ\src\PinPick.c"   
#endif

//继电器粘连
#if RlyAdh_Detect_type > 0
#include "Board_APM32_SQ\src\rly_adhesion.c"   
#endif

//指纹识别
#if finger_sensor_type > 0
#include "Board_APM32_SQ\src\zw101.c"  
#endif

//ble或WiFi模块
#if BleWifi_type == BleWifi_Ai_WB2
#include "Board_APM32_SQ\src\bleWifi.c"  
#include "Board_APM32_SQ\src\base64.c"

#endif


#if ENCRYP_TYPE == ENCRYP_SM4
#include "..\SQDriBuss\source\encryptionSM4.c"
#endif

#if Using_UART_LCD == LCD_0P42_IIC  
#include "Board_APM32_SQ\src\strPicRes.c"     
#include "Board_APM32_SQ\src\SSD1306.c"       
#elif Using_UART_LCD == LCD_4P3_UART  
#include "Board_APM32_SQ\src\LCD4P3.c"	
#endif

#if Upboard_IIC
#include "Board_APM32_SQ\src\IIC.c"
#include "Board_APM32_SQ\src\upboard.c"
#endif

#if key1_Ctrl_id == KeyCtrl_UpBoard
#include "Board_APM32_SQ\src\upkeytreat.c"
#endif

//////////////////// 差异较大的文件 ////////////////
#ifdef  AT32F403AVGT7
	// 雅特力芯片初始化函数
	#if Using_UART_LCD == LCD_0P42_IIC  
	#include "Board_AT32_SQ\src\IIC.c"
	#endif
#else
	// 极海芯片初始化函数
	#if Using_UART_LCD == LCD_0P42_IIC  
	#include "Board_APM32_SQ\src\IIC.c"	 
	#endif
#endif

#endif

